<?php

/**
 * 第三方接口回调 路由
 */

//微信类
Route::get('/wxauth', 'Weixin\WxAuthController@auth');
Route::get('/wechat-error', function (){
    return view('wechat_error');
});

Route::get('/wxpay', 'Home\TestPayController@wxPayRecharge');
Route::get('/wxrefund', 'Home\TestPayController@wxPayRefundView');
Route::post('/wxrefund', 'Home\TestPayController@wxPayRefund');

Route::any('/wx-notifyurl', 'Pay\WxPayNotifyController@wxnotify');

/**
 * 支付宝支付接口
 * 分为支付2.0接口（手机网站类型，可调用支付宝APP），以及即时到账类型（有PC版）
 */
//支付-- AliPay 2.0 支付异步通知、跳转
Route::any('/alipay/notify','Pay\AliPayController@notifyUrl');
Route::any('/alipay/return','Pay\AliPayController@returnUrl');
//支付-- AliPay 2.0 支付异步通知、跳转
Route::any('/alidirectpay/notify','Pay\AliDirectPayController@notifyUrl');
Route::any('/alidirectpay/return','Pay\AliDirectPayController@returnUrl');

//物流-- 快递鸟 类
Route::any('/kdniao','Logistics\KdNiaoController@getTrackCallback');

//支付-- Ping++ 支付异步通知
Route::post('/pingpay/notify','Pay\PingPayController@notify');


//支付统一跳转路由
Route::get('/paysuccess','Admin\AddDataBasesController@paySuccess');
Route::get('/payfail','Admin\AddDataBasesController@payFail');
